//
//  ZLPNetWorkTool.h
//  NetWorkTool
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 赵连鹏. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SUCCESS_BLOCK) (id responseObject);
typedef void (^FAILURE_BLOCK) (NSError *error);


@interface ZLPNetWorkTool : NSObject


+ (void)getWithURL:(NSString *)URLStr success:(SUCCESS_BLOCK)successBlock failure:(FAILURE_BLOCK)failureBlock;

+ (void)postWithURL:(NSString *)URLStr parameters:(id)parameters success:(SUCCESS_BLOCK)successBlock failure:(FAILURE_BLOCK)failureBlock;

+ (void)judgeNetState;

@end
